|
simpletext library
v0.98
Compact variations of put/get write/read and print/scan for smaller program sizes
|
#include <stdlib.h>#include <propeller.h>#include "serial.h"Functions | |
| serial * | serial_open (int rxpin, int txpin, int mode, int baudrate) |
Opens a serial module.
Copyright (c) 2013, Parallax Inc. Written by Steve Denson
| serial* serial_open | ( | int | rxpin, |
| int | txpin, | ||
| int | mode, | ||
| int | baudrate | ||
| ) |
Initializes the simple serial terminal. Equivalent to a start function which runs assembly in a cog. If the txpin is < 0 or > 31, the pin will not be set to output.
| rxpin | is pin number 0 to 31 for receive input |
| txpin | is pin number 0 to 31 for transmit output |
| mode | is unused mode field (for FdSerial compatibility) |
| baudrate | is frequency of bits ... 115200, 57600, etc... |
1.8.1.2